package com.tang.pojo;
import java.util.List;
public class Page<T> {
    private int pageNow;
    private int pageSize;
    private int pageTotal;
    private int countTotal;
    private List<T> items;
    public Page(){

    }
    public Page(int pageNow, int pageSize, int pageTotal, int countTotal, List<T> items) {
        this.pageNow = pageNow;
        this.pageSize = pageSize;
        this.pageTotal = pageTotal;
        this.countTotal = countTotal;
        this.items = items;
    }
    public int getPageNow() {
        return pageNow;
    }
    public void setPageNow(int pageNow) {
        this.pageNow = pageNow;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public int getPageTotal() {
        return pageTotal;
    }
    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }
    public int getCountTotal() {
        return countTotal;
    }
    public void setCountTotal(int countTotal) {
        this.countTotal = countTotal;
    }
    public List<T> getItems() {
        return items;
    }
    public void setItems(List<T> items) {
        this.items = items;
    }
    @Override
    public String toString() {
        return "Page{" +
                "pageNow=" + pageNow +
                ", pageSize=" + pageSize +
                ", pageTotal=" + pageTotal +
                ", countTotal=" + countTotal +
                ", items=" + items +
                '}';
    }
}
